<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar"><span class="color_red">*</span>项目基本情况</div>
	<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	<col style="width: 25%"/>
	    <tr class="li_1">
	        <td align="right">项目名称：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/zh_title' id='project_name' style="width: 80%" maxlength="100" class="required" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称">
	        </td>
	    </tr>
	 
		 <tr>
			<td align="right">归口管理部门：</td>
	        <td >
	        	<c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
				<cpt:tree key="recomend_org_gk" cacheable="false" className="hn_iuput_kuang required" readonly="true" value="${recomend_org}"  label="归口管理部门"
	        			id="recomend_org"  showPattern="all" shieldPattern="0" topCheckbox="false" onClick="initTreeValueExt" />
				<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"   value="<x:out select="$xmlData/data/proposal/recomend_org_value" />">
				<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
	        </td>
		   <td  align="right" >申请日期：</td>
		<td>
			<c:set var="apply_date_curr"><x:out select="$xmlData/data/proposal/apply_date_curr" /></c:set>
			<cpt:date id="apply_date_curr" name="proposal/submit_date" value="${apply_date_curr}" className=" required date" label="申请日期"></cpt:date> 
		</td>
		</tr>
		
		 <tr>
	        <td align="right">单位名称（全称）：</td>
	        <td colspan="3"> 
	        	<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
	        </td>
	    </tr>
	   
	    <tr>
	        <td align="right">法定代表人姓名：</td>
	        <td>
	        	<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname" />
	        </td>
	        <td align="right">法定代表人联系电话：</td>
	        <td>
	        		<span name="organization_persons/tel"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel" /></span>
	        </td>
	   </tr>
	     
	    <tr>
		<td align="right">资源库（圃）负责人姓名：</td>
		<td>
				<input type='text' name='proposal/resource_psn_cname' class= required" style="width: 80%" maxlength="50" label="资源库（圃）负责人姓名" value="<x:out select="$xmlData/data/proposal/resource_psn_cname" />" />
			  <span name="proposal/contact_psn_cname" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name" /></span> 
			  <span name="proposal/contact_email" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email" /></span>
			  <span name="proposal/contact_tel" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel" /></span>
		</td>
		<td align="right">负责人联系电话：</td>
		<td>
		<input type='text' name='proposal/resource_psn_tel' class= required"  maxlength="20"style="width: 80%" label="负责人联系电话" value="<x:out select="$xmlData/data/proposal/resource_psn_tel" />" />
			<span name="proposal/contact_psn_mobile" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile" /></span>
		</td>
	</tr>
	     
	     
	     
	<%-- <tr>
		<td align="right">项目联系人姓名：</td>
		<td><span name="proposal/contact_psn_cname"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name" />
		    </span> <span name="proposal/contact_email" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email" />
		    </span> <span name="proposal/contact_tel" style="display: none;"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel" /></span>
		</td>
		<td align="right">联系人手机：</td>
		<td><span name="proposal/contact_psn_mobile"> <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile" />
		</span></td>
	</tr> --%>
	 <tr>
    	<td align="right">项目报审级次：<br/>（省补助资金拨付所属财政局）</td>
        <td >
			<c:set var="sub_step">{'id':'<x:out select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
          	<cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang required " readonly="true" value="${sub_step}"  label="项目报审级次" 
          		id="sub_step" onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
	        <input id="sub_step_value" type="hidden" name="proposal/sub_step_value"  value="<x:out select="$xmlData/data/proposal/sub_step_value" />"/>
            <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"  value="<x:out select="$xmlData/data/proposal/sub_step_name" />"/>
		</td>
		
		
    	<td align="right">项目申请金额（万元）：</td>
    	<td>
    		<input type='text' name='proposal/request_money' class="required" id='request_money' onfocus="InitInput.setNumber(this,9,4,2)" style="text-align: right;" value='<x:out select="$xmlData/data/proposal/request_money"/>' label="项目申请金额">
    	</td>
    </tr>
	    <tr>
			<td  align="right">单位类型：</td>
			<td colspan="5">
			    <c:set var="nyorg_type_value"><x:out select="$xmlData/data/proposal/nyorg_type_value" /></c:set> 
				<cpt:checkbox key="nyorg_type" name="nyorg_type"  repeatColumn="3" value="${nyorg_type_value}" ></cpt:checkbox>
				<input type="hidden" id="nyorg_type_value" name="proposal/nyorg_type_value" class="required" value="${nyorg_type_value}" label="单位类型"> 
				<input type="hidden" name="proposal/nyorg_type_name" value="<x:out select="$xmlData/data/proposal/nyorg_type_name" />">
			</td>
		</tr>
		
	   <tr class="li_1">
	        <td align="right"> 资源库（圃）全称：</td>
	        <td colspan="3">
	        	<input type='text' name='proposal/resource_name' maxlength="100" style="width: 80%" class="required" value='<x:out select="$xmlData/data/proposal/resource_name"/>' label="资源库（圃）全称">
	        </td>
	    </tr>
	    <tr>
			<td  align="right">建设开始时间：</td>
			<td>
				 <c:set var="begbuild_date"><x:out select="$xmlData/data/proposal/begbuild_date" /></c:set>
				<cpt:date id="begbuild_date" name="proposal/begbuild_date" value="${begbuild_date}"  className="required date" label="建设开始时间"></cpt:date> 
			</td> 
			
			<td  align="right">从事资源研究人员数量（人）：</td>
			<td>
				<input type="text" onfocus="InitInput.setNumber(this,5,0,0);"  name='proposal/resource_work_person'  style="width: 80%" class="required" value='<x:out select="$xmlData/data/proposal/resource_work_person"/>' label="从事资源研究人员数量（人）">
			</td>
	   </tr>
	<tr>
		<td  align="right">建设地点：</td>
		<td >
	    	<input type='text' name='proposal/build_area' class= required" maxlength="50" style="width: 80%" label="建设地点" value="<x:out select="$xmlData/data/proposal/build_area" />" />
		</td>
		<td  align="right">建设规模：</td>
		<td >
			<input type='text' name='proposal/build_scale' class="required" maxlength="50" style="width: 80%" label="建设规模" value="<x:out select="$xmlData/data/proposal/build_scale" />" />
		</td>
	</tr>
	
	<tr>
		<td align="right">资源种类、数量及代表性：<br/>（限1000字）</td>
		<td colspan="5">
	    	<textarea rows="3" col="90" name='proposal/resource_type' class="input_textarea required  maxlength:1000 " style="width: 725px;" label="资源种类、数量及代表性"><x:out select="$xmlData/data/proposal/resource_type"/></textarea>
			<input type="hidden" name="proposal/resource_type_hidden" id="proposal/resource_type_hidden" value="<x:out select="$xmlData/data/proposal/resource_type" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">公益性共享服务及成果产出情况：<br/>（限1000字）</td>
		<td colspan="5">
	    	<textarea rows="3" col="90" name='proposal/welfare_service' class="input_textarea required  maxlength:1000" style="width: 725px;" label="公益性共享服务及成果产出情况"><x:out select="$xmlData/data/proposal/welfare_service"/></textarea>
			<input type="hidden" name="proposal/welfare_service_hidden" id="proposal/welfare_service_hidden" value="<x:out select="$xmlData/data/proposal/welfare_service" />"/>
		</td>
	</tr>
	    
	</table>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
 }
</script>	